package com.lesama.student;

public class StudentTest {
    public static void main(String[] args) {
        Student stu1 = new Student();
        System.out.println(stu1); // com.lesama.student.Student@4eec7777 -- 全类名：包名 + 类名
        stu1.name = "ts";
        stu1.age = 25;
        System.out.println(stu1.age);
        System.out.println(stu1.name);
        stu1.study();
        stu1.eat();
        Student stu2 = new Student();
        System.out.println(stu2); // com.lesama.student.Student@3b07d329
        stu2.name = "rk";
        stu2.age = 26;
        System.out.println(stu2.age);
        System.out.println(stu2.name);
        stu2.study();
        stu2.eat();

    }
}
